home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip Kasım 2003.iso / prog / openoff / f_0311 / swriter.jar / text / swriter / guide / conditional_text2.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  2.6 KB  |  23 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Conditional Text for Page Counts</title><meta name="filename" content="text/swriter/guide/conditional_text2"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         span.T1{
  7.                 font-weight:bold;}
  8.         </style></head><body>
  9.    
  10.    
  11.    <p class="P1"/>
  12.    <p class="Head1"><help:key-word value="page counts; conditional text" tag="kw68295_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="conditional text; page counts" tag="kw68295_2" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="conditional_text2" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68295">Conditional Text for Page Counts</help:link></help:to-be-embedded></p>
  13.    <p class="Head3">How can the word "page" be displayed in singular or plural, depending on the number of pages in a text document?</p>
  14.    <p class="Paragraph">To ensure that the word "Page" is modified based on the actual number of pages, use the <span class="T1">Conditional text</span> field. Proceed as follows:</p>
  15.    <p class="Paragraph">1. Place the cursor on the position in the document where the pagination is to be shown.</p>
  16.    <p class="Paragraph">2. Go to the <span class="T1">Insert - Field - Page Count</span> menu item. The page count will be inserted into the document. Directly after this, enter a space.</p>
  17.    <p class="Paragraph">3. Go to the <span class="T1">Insert - Field - Other</span> menu item. Select the <span class="T1">Functions</span> tab and click the <span class="T1">Conditional text</span> entry under <span class="T1">Field Type</span>.</p>
  18.    <p class="Paragraph">4. In the <span class="T1">Condition</span> field, enter: "Page > 1" (but without inverted commas). In the <span class="T1">Then</span> field, enter: "Pages." In the <span class="T1">Otherwise</span> field enter: "Page".</p>
  19.    <p class="Paragraph">5. Click <span class="T1">Insert</span> to insert the field into the document, then click <span class="T1">Close</span> to exit the field dialog. The correct form of the word Page/Pages will appear based on the number of pages. Press (F9) to perform an update.</p>
  20.    <p class="ParaList"><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p>
  21.    <p class="ParaList"><help:embedded Id="67957" Eid="conditional_text" xmlns:help="http://openoffice.org/2000/help"/></p>
  22.    <p class="ParaList"><help:embedded Id="68242" Eid="fields" xmlns:help="http://openoffice.org/2000/help"/></p>
  23.   </body></html>